import request from '@/utils/request'

export function login(data) {
  return request({
    url: 'http://127.0.0.1:8088/auth/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: 'http://127.0.0.1:8088/auth/info',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/web-api/auth/logout',
    method: 'delete'
  })
}

export function download(query) {
  return request({
    url: '/web-api/system/user/export',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
